package com.wyh.mapper.gfivemapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wyh.domain.po.gfive.Invoicerecords;
import com.wyh.domain.vo.gfive.InvoicerecordsVO;
import com.wyh.domain.vo.gfive.PushCustomersVO;
import com.wyh.domain.vo.gfive.PushInvcPartVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InvoicerecordsVOMapper extends BaseMapper<InvoicerecordsVO> {

    /**
     * 分页显示 已经上传票据的信息
     */
    List<InvoicerecordsVO> showPage(@Param("pageNum")Integer pageNum, @Param("pageSize")Integer pageSize);


    /**
     * 查询数据显示
     */
    InvoicerecordsVO showPageLook(@Param("invoicerecords")Invoicerecords invoicerecords);
    /**
     * 查询已经上传的发票
     */
    int InvoicerecorNumber();


//    int getbillid(@Param("Invoicecode") String Invoicecode);

    /**
     * 推送 即返回手机号 以及邮箱
     * 直接进行多表联查
     */
    PushCustomersVO selectCustomer(@Param("Invoicecode") String Invoicecode);

    /**
     * 判断 发票号码是否存在
     */
    int slectInvoicecode(@Param("Invoicecode") String Invoicecode);

    /**
     * 查询 票据的数据类型
     */
    String selectType(String InvoicingtypeVO);

    /**
     * 将查询出的数据 里面的数据 替换为字符串
     */
    PushInvcPartVO selectPart(@Param("Type")Integer Type,
                              @Param("Owenr")Integer Owenr,
                              @Param("Buyer")Integer Buyer,
                              @Param("noticenumber")String noticenumber);

}
